<?php

namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Zizaco\Entrust\Traits\EntrustUserTrait;

class User extends Authenticatable
{
    use EntrustUserTrait;

    protected $table = 'users';

    protected $guarded = ['id','created_at','updated_at'];

    protected $fillable = ['name','mobile','nickName','head', 'sex','address', 'email','password','ubonus','idNo','idPicFront','idPicBack','useragent','salesmanId'];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [ 'password', 'remember_token',];

//    public function roles()
//    {
//
//    }
//
//    public function hasRole($name)
//    {
//
//    }
//
//    public function can($ability, $arguments = Array())
//    {
//
//    }
//
//    public function ability($role, $permissions, $options)
//    {
//
//    }


}
